package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.operator.business.model.OperatorApprovalRecord;

public interface OperatorApprovalRecordRepository extends JpaRepository<OperatorApprovalRecord, String>, JpaSpecificationExecutor<OperatorApprovalRecord> {

	@Query("select p from OperatorApprovalRecord p where p.personalFinanceProjectCopy.id=:id")
	List<OperatorApprovalRecord> selectRefuseByFinanceProjectId(Pageable pageable,@Param("id") String id);
}
